/**
 * 参数测试， 什么情况下， 可以改变参数的值。
 */
public class ParamTest {
    public static void main(String[] args) {

        int percent = 10;
        System.out.println("before:" + percent);
        System.out.println("*2:" + 2 * percent);
        percent = percent * 2;
        System.out.println("after" + percent); // dosen`t work

        Employee e = new Employee();
        System.out.println("before" + e.row);
        Employee.multi2();
        System.out.println("*2");
        System.out.println("after" + e.row);// work

    }

    static class Employee {

        static int row = 10;
//        public Employee() {
//
//        }
        static void multi2() {
            row = 2 * row;
        }
    }
}

